<?php
require "./common/function.php";
require "./config/dbconfig.php";

$a = $_GET['a'];
if($a=='add'){
    $msg=[false,'添加购物车失败'];
}

$proId = $_GET['id'];

$sql="select a.*,b.category flname from t_product a LEFT JOIN t_category b ON a.category=b.id where a.id=$proId and a.`status`=0";
$result = getMySql($sql,'查询商品详情失败');
if($result){
   if(mysqli_num_rows($result)){
       $pros = mysqli_fetch_array($result);
   }
}

require "./html/productInfo.html";
exit;
